<template>
  <div class="posts">
    
  
    <div>Test {{ $route.params}}</div>

  </div>
</template>

<script>
export default {
  name: 'posts',
  props: {
    msg: String
  },

  computed: {
    username () {
      // 我们很快就会看到 `params` 是什么
      return this.$route.params.username;
    }
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
